package Classes;

import java.sql.Date;
import java.util.ArrayList;



/**
 * 
 * @author Lidiya Chhailo
 * General Packages Class creation
 *
 */
public class Packages 
{
    private int pkgId;
    private String pkgName;
    private Date pkgStartDate;
    private Date pkgEndDate;
    private String pkgDesc;
    private double pkgbasePrice;
    private double pkgAgnComm;
    private Regions pkgRegion = new Regions();
    private ArrayList<Integer>  prd_suppId = new ArrayList<Integer> ();
    
    
	
	public int getPkgId() {
		return pkgId;
	}
	public void setPkgId(int pkgId) {
		this.pkgId = pkgId;
	}
	public String getPkgName() {
		return pkgName;
	}
	public void setPkgName(String pkgName) {
		this.pkgName = pkgName;
	}
	public Date getPkgStartDate() {
		return pkgStartDate;
	}
	public void setPkgStartDate(Date pkgStartDate) {
		this.pkgStartDate = pkgStartDate;
	}
	public Date getPkgEndDate() {
		return pkgEndDate;
	}
	public void setPkgEndDate(Date pkgEndDate) {
		this.pkgEndDate = pkgEndDate;
	}
	public String getPkgDesc() {
		return pkgDesc;
	}
	public void setPkgDesc(String pkgDesc) {
		this.pkgDesc = pkgDesc;
	}
	public double getPkgbasePrice() {
		return pkgbasePrice;
	}
	public void setPkgbasePrice(double pkgbasePrice) {
		this.pkgbasePrice = pkgbasePrice;
	}
	public double getPkgAgnComm() {
		return pkgAgnComm;
	}
	public void setPkgAgnComm(double pkgAgnComm) 
	{
		this.pkgAgnComm = pkgAgnComm;
		
	}
	public Regions getPkgRegion() 
	{
		return pkgRegion;
	}
	public void setPkgRegion(Regions pkgRegion) 
	{
		this.pkgRegion = pkgRegion;
	}
	
	
	public ArrayList<Integer> getPrd_suppId() {
		return prd_suppId;
	}
	
	public void addPrd_suppId(int prdsuppId) 
	{
		getPrd_suppId().add(prdsuppId);
	}
	@Override
	public String toString() 
	{
		return (" " + pkgId  + "," + pkgName +"," + pkgStartDate +","
				+ pkgEndDate + "," +pkgDesc);
				
	}
    
}
